package com.extension.company.contract.home;

import com.extension.company.common.mvp.IModel;
import com.extension.company.common.mvp.IView;
import com.extension.company.model.entity.RetailGoosListBean;

import java.util.List;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/8/7 08:34
 * 功能：在线支付
 */
public interface OnlinePaySuccessContract {

	interface View extends IView {
		void commitOrderSuccess(double totalPrice); //

		void retailListSuccess(List<RetailGoosListBean.DataBean> list);
	}

	interface Model extends IModel {
		void commitOrder(String orderId, OrderCommitM2P callback);

		void retailGoodsList(retailListM2P callback);
	}

	interface OrderCommitM2P {
		void m2p(double totalPrice);
	}

	interface retailListM2P {
		void m2p(List<RetailGoosListBean.DataBean> retailList);
	}
}
